<?php
	//使用GD库画图
	//需要一个画布
	//$huabu = imagecreate(400,400);
	//创建一个真彩画布
	$huabu = imagecreatetruecolor(400,400);
	//需要一支笔
	//需要颜色
	$red = imagecolorallocate($huabu,255,0,0);
	$white = imagecolorallocate($huabu,255,255,255);
	//画布也需要颜色
	//填充我们的画布
	imagefill($huabu,1,1,$white);
	
	//画一个椭圆（正圆）
	imageellipse($huabu,200,150,200,150,$red);
	//画一个弧度
	imagearc($huabu,200,200,100,100,90,-90,$red);
	//填充的弧
	imagefilledarc($huabu,300,300,200,200,0,90,$red,IMG_ARC_PIE);
	

	header("content-type:image/png");
	imagepng($huabu);
	imagedestroy($huabu);